Log Gracefully and ignore entity id null error#27459
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce noisy/avoidable errors by (1) logging WebSocket disconnect-related exceptions more gracefully and (2) avoiding failures when recording search-index reader errors that don’t have a usable entity id.
Changes:
- Update Jetty 12 WebSocket error handling to downgrade
ClosedChannelExceptionlogging and add safer logging around error handling. - Update distributed search indexing
PartitionWorkerto deriveentityIdmore intentionally (preferEntityInterface.getId()) and skip recording reader failures whenentityIdis null.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| openmetadata-service/src/main/java/org/openmetadata/service/socket/Jetty12WebSocketHandler.java | Adjusts WebSocket error logging to treat closed-channel errors as non-actionable noise and wraps error handling defensively. |
| openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/searchIndex/distributed/PartitionWorker.java | Changes how reader failures derive entityId and adds a skip path when an id can’t be determined. |
Code Review ✅ Approved 1 resolved / 1 findingsGraceful logging implemented for null entity IDs, resolving the panic caused by emitting messages on closed channels. No further issues found. ✅ 1 resolved✅ Bug: emit() called on closed channel with null message
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
🟡 Playwright Results — all passed (26 flaky)✅ 3659 passed · ❌ 0 failed · 🟡 26 flaky · ⏭️ 89 skipped
🟡 26 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
* Log Gracefully and ignore entity id null error * Ignore in recorder * Review comments addressed (cherry picked from commit 35c3c92)



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>